<!-- 透明 -->
<template>
    <si-opacity v-model="widget.widgetData.eles.style.opacity" />
</template>

<script>
import { defineComponent, toRefs, computed } from 'vue'
import { SiOpacity } from '@/components/setting-pane/setting-item'
export default defineComponent({
    name: 'RowOpacity',
    components: {
        SiOpacity
    },
    props: {
        widget: {
            type: Object,
            default: () => ({})
        }
    },
    setup(props) {
        const { widget } = toRefs(props)

        const widgetType = computed(() => widget.value?.widgetData?.eles?.type)

        return {
            widget,
            widgetType
        }
    }
})
</script>